package com.example.nio.netty.protoco.response;

import com.example.nio.netty.protoco.Command;
import com.example.nio.netty.protoco.Packet;

public class LoginResponse extends Packet {

    private Boolean result;

    private String userId;

    private String userName;


    public Boolean getResult() {
        return result;
    }

    public void setResult(Boolean result) {
        this.result = result;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "LoginResponse{" +
            "result=" + result +
            ", userId='" + userId + '\'' +
            ", userName='" + userName + '\'' +
            '}';
    }

    @Override
    public Byte getCommand() {
        return Command.LOGIN_RESPONSE;
    }
}
